package com.lagou.page.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 李树飞
 */
@RestController
@RequestMapping("/config")
@RefreshScope   //手动刷新
public class ConfigClientController {

    @Value("${lagou.slogn}")
    private String slogn;

    /*@Value("${pagea}")
    private String pagea;

    @Value("${pageb}")
    private String pageb*/;

    @GetMapping("/getSlogn")
    public String getSlogn() {
        return slogn;
    }
}
